<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript">
$(function(){   
   $("#memberUpdate").submit(function(){
	  var id=$("#memberUpdate :input[name=memberId]");
      var name=$("#memberUpdate :input[name=memberName]");
      var password=$("#memberUpdate :input[name=memberPassword]");
      var tel=$("#memberUpdate :input[name=memberTel]");
      var email=$("#memberUpdate :input[name=memberEmail]");
      var address=$("#memberUpdate :input[name=memberAddress]");
      if(id.val()==""){
          alert("아이디를 입력해주세요!");
          id.focus();
          return false;
       }
      if(name.val()==""){
         alert("이름을 입력해주세요!");
         name.focus();
         return false;
      }
      if(password.val()==""){
          alert("비밀번호를 입력해주세요!");
          email.focus();
          return false;
       }
      if(email.val()==""){
          alert("email을 입력해주세요!");
          email.focus();
          return false;
       }
      if(address.val()==""){
          alert("주소를 입력해주세요!");
          email.focus();
          return false;
       }
      if(tel.val()==""){
         alert("전화번호를 입력해주세요!");
         tel.focus();
         return false;
      }
     });
});
</script>
 <center>
 <form method="post"  id="memberUpdate" action="${initParam.root}member/auth_memberUpdate.do">
<h3><font color="skyblue"><b>회원정보수정</b></font></h3>
<table> 
<tr>
<td><b>ID</b></td><td><input readonly type ="text" name="memberId" value="${sessionScope.mvo.memberId}"></td>
</tr>
<tr>
<td><b>이름</b></td><td><input  type="text" name="memberName" value="${sessionScope.mvo.memberName}"></td>
</tr>
<tr>
<td><b>비밀번호</b></td><td><input type="password" name="memberPassword" value="${sessionScope.mvo.memberPassword}"></td>
</tr>
<tr>
<td><b>E-Mail</b></td><td><input type="text" name="memberEmail" value="${sessionScope.mvo.memberEmail}"></td>
</tr>
<tr>
<td><b>주소</b></td><td><input type="text"  name="memberAddress" value="${sessionScope.mvo.memberAddress}"></td>
</tr>
<tr>
<td><b>연락처</b></td><td><input type="text"  name="memberTel" value="${sessionScope.mvo.memberTel}"></td>
</tr>
<tr>
<td colspan="4" align="center"><input type="submit" value="회원정보 수정"></td>
</tr>
</table>
</form>
</center>